jsp 页面 <html:form>标签报错

来源:百度知道 编辑:UC知道 时间:2024/06/17 05:49:22
org.apache.jasper.JasperException: An exception occurred processing JSP page /html/~sale/add.jsp at line 14

11: </head>
12: <body>
13: <div class="page_title">销售机会管理  > 新建销售机会</div>
14: <html:form action="/add.do?method=add">
15: <div class="button_bar">
16: <button class="common_button" onclick="help('');">帮助</button>
17: <button class="common_button" onclick="back();">返回</button>
怎么会在标签处报错呢 我加入了struts标签 把action的值设为""还是报错

使用struts一定要先把提交的action创建出来,否则会报错(也就是你的add)

是不是用的eclipse。关了重新打开,还有错误就是你加入标签不匹配了。

把它改成
<html:form action="/add.do?method=add"
method="post">